//
//  PlayVideoViewModel.m
//  JiZhuiAn
//
//  Created by Easy.Lin on 16/7/10.
//  Copyright © 2016年 Easy. All rights reserved.
//

#import "PlayVideoViewModel.h"
#import "APIService+Training.h"

@interface PlayVideoViewModel ()

@property (nonatomic, strong) NSMutableArray * dataSource;
@property (nonatomic, strong) LoadingRACCommand * loadVideoInfoCommand;

@end

@implementation PlayVideoViewModel

- (void)initialize
{
    self.loadVideoInfoCommand = [[LoadingRACCommand alloc] initWithSignalBlock:^RACSignal *(id input) {
        return [[[APIService shareService] getTrainingVideoWithVideoId:self.targetNode.data.videoIdArray] doNext:^(id x) {
            self.dataSource = x;
        }];
    }];
}

@end
